package xyz.labmem.base.sys.module.log.entity

import com.baomidou.mybatisplus.annotation.TableName
import com.fasterxml.jackson.annotation.JsonInclude
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import xyz.labmem.base.core.enums.LogAnnotationOpTypeEnum
import xyz.labmem.base.core.base.BaseEntity

/**
 * @Author lty
 * @Date 2021/12/16 11:40
 */
@TableName("sys_op_log")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value = "系统操作日志表")
class SysOPLog : BaseEntity<SysOPLog>() {

    @ApiModelProperty(value = "名称")
    var name: String? = null

    @ApiModelProperty(value = "操作类型")
    var opType: LogAnnotationOpTypeEnum? = null

    @ApiModelProperty(value = "是否执行成功（Y-是，N-否）")
    var success: Char? = null

    @ApiModelProperty(value = "具体消息")
    var message: String? = null

    @ApiModelProperty(value = "ip")
    var ip: String? = null

    @ApiModelProperty(value = "浏览器")
    var browser: String? = null

    @ApiModelProperty(value = "操作系统")
    var os: String? = null

    @ApiModelProperty(value = "请求地址")
    var url: String? = null

    @ApiModelProperty(value = "类名称")
    var className: String? = null

    @ApiModelProperty(value = "方法名称")
    var methodName: String? = null

    @ApiModelProperty(value = "请求方式")
    var reqMethod: String? = null

    @ApiModelProperty(value = "请求参数")
    var param: String? = null

    @ApiModelProperty(value = "返回结果")
    var result: String? = null

    @ApiModelProperty(value = "操作账号")
    var account: String? = null

}